body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
}

.left-panel {
    flex: 1;
    background-color: #f4f4f4;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-panel img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.center-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-panel button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.center-panel button:hover {
    background-color: #0056b3;
}

.right-panel {
    flex: 1;
    background-color: #f9f9f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-panel img {
    width: 300px;
    height: 300px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-container .checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: green;
    border-radius: 50%;
    display: none;
}

.image-container.selected .checkmark {
    display: block; /* 显示对钩标志 */
}
/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* 自动调整列数，最小宽度100px */
    gap: 10px; /* 网格之间的间距 */
    max-height: 300px; /* 设置最大高度，防止面板过长 */
    overflow-y: auto; /* 添加滚动条 */
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 单个图片容器 */
.image-container {
    position: relative;
    width: 100%; /* 图片容器根据网格自适应宽度 */
    aspect-ratio: 1 / 1; /* 保持正方形比例 */
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.image-container:hover {
    transform: scale(1.05); /* 鼠标悬停时略微放大 */
}

/* 图片适应容器 */


/* 选中状态的对钩标志 */
.image-container .checkmark {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: green;
    border-radius: 50%;
    display: none; /* 默认隐藏 */
    content: '';
}

.image-container.selected .checkmark {
    display: block; /* 选中时显示对钩 */
}





.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 150px;
    height: 150px;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片保持比例，填满容器 */
}
